/**
 * Sequelize ORM框架
 */

import { Sequelize } from 'sequelize'

export default async (server) => {
    const { config } = server;
    server.sequelize = new Sequelize({
        dialect: 'sqlite',
        storage: config.sequelize?.storage || './database.db'
    })
}